package org.advanced.extend;

import java.util.LinkedList;
import java.util.Queue;

/**
 * @author John.zhang
 * @version Id: WadiNotify, v 1.0 2020/12/7 15:53 ZhiYong Exp $
 */
public class WadiNotify {

    public static void main(String[] args) {
        Queue<String> queue=new LinkedList<>();
        int size=10;
        Producer producer=new Producer(queue,size);
        Consumer consumer=new Consumer(queue,size);
        Thread t1=new Thread(producer);
        Thread t2=new Thread(consumer);
        t1.start();
        t2.start();
    }

}
